import coreModules from '@/core/store/modules'
// import coreGetters from '@/core/store/getters'
import Vue from 'vue'
import Vuex from 'vuex'
// import IngotCookie from '@/utils/cookie.js';

Vue.use(Vuex)

// 全局访问的state对象
const state = {
  top_title:"预警"
}

const mutations = {
  // 自定义改变state初始值的方法，这里面的参数除了state之外还可以再传额外的参数(变量或对象);
  set_top_title(state, payload){
    state.top_title = payload
    // console.log(state.top_title)
  }
}

export default new Vuex.Store({
  state,
  modules: {
    ...coreModules
  },
  getters: {
    // ...coreGetters,
  },
  mutations
})
